package com.niit.yhserver.mapper;

import com.niit.yhpojo.entity.SalesOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SalesOrderMapper {

        List<SalesOrder> selectAll();

        List<SalesOrder> selectByCondition(
                @Param("orderNum") String orderNum,
                @Param("userName") String userName,
                @Param("userPhone") String userPhone,
                @Param("status") String status);

        SalesOrder selectById(Long id);

        int insert(SalesOrder order);

        int update(SalesOrder order);

        int deleteById(Long id);
}